default: all

all: 
	#$(MAKE) -C fusion M=$(PWD) all
	#$(MAKE) -C system M=$(PWD) all
	#$(MAKE) -C top M=$(PWD) all
	#cp top/dpsm_top.bit .
	echo "*********************************************"
	echo "Generate bitstream DONE                      "
	echo "Initializing BRAM contents of the bitstream  "
	echo "*********************************************"
	bitinit -p xc6slx25ftg256-2 ../../hw/system/system.mhs  -pe microblaze_0 ../../hw/system/bootloops/microblaze_0.elf -bt ./dpsm_top.bit -o ./download.bit
	echo "*********************************************"
	echo "Initializing Memory...                       "
	echo "*********************************************"
	data2mem -bm implementation/system_bd -p xc6slx25ftg256-2 -bt implementation/system.bit  -bd bootloops/microblaze_0.elf tag microblaze_0  -o b implementation/download.bit 
